package cn.softgame.jserver.http;

import cn.softgame.jserver.connector.WrapFactory;

public class HttpWrapFactory extends WrapFactory {
	private String httpPostHeader = null;
	
	public HttpWrapFactory(){
		httpPostHeader = HttpHeadHelper.getPostHeader("",0);
	}

	@Override
	public byte[] getRequest(byte[] bytes) {
		return HttpHeadHelper.assembleRequest(bytes);
	}

	@Override
	public byte[] getResponse(byte[] bytes) {
		return HttpHeadHelper.assembleResponse(bytes);
	}

	@Override
	public byte[] getContentFromRequest(byte[] bytes) throws Exception {
		return HttpHeadHelper.getContent(bytes);
	}

	@Override
	public byte[] getContentFromResponse(byte[] bytes) throws Exception {
		return HttpHeadHelper.getContent(bytes);
	}

}
